package tech.heiming.aps.domain;

import lombok.Getter;
import lombok.Setter;
import org.optaplanner.core.api.domain.entity.PlanningEntity;
import org.optaplanner.core.api.domain.variable.PlanningVariable;

/**
 * @author heimingz
 */
@Getter
//@PlanningEntity
public class Room {
    private String name;

    @Setter
    @PlanningVariable(valueRangeProviderRefs = "lightRange")
    private Light light;

    private Room() {
    }

    public Room(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }
}
